#include "adminwindow.h"
#include "ui_adminwindow.h"

AdminWindow::AdminWindow(QWidget *parent, AdminData *data) :
    QMainWindow(parent),
    ui(new Ui::AdminWindow)
{
    ui->setupUi(this);
    this->setWindowTitle("Admin View");
    this->data = data;

//    AdminCourseForm *aCourseForm = new AdminCourseForm(this);
//    AdminOutSectForm *aOutSectForm = new AdminOutSectForm(this);
//    AdminMain *aMain = new AdminMain(this);
    ui->stackedWidget->addWidget(new AdminMain(this, data));
//    ui->stackedWidget->setCurrentWidget(aMain);

}

AdminWindow::~AdminWindow()
{
    delete ui;
}

//void AdminWindow::on_pushButton_clicked()
//{
//    ui->stackedWidget->setCurrentIndex(1);
//}

